import axios from '~/axios'

export function getStatefulsetsApi(data){
    return axios.get("/api/k8s/statefulsets",data)
}

export function createStatefulsetApi(data){
    return axios.post("/api/k8s/statefulset/create",data)
}

export function updateStatefulsetApi(data){
    return axios.put("/api/k8s/Statefulset/update",data)
}

export function deleteStatefulsetApi(data){
    return axios.delete("/api/k8s/deployment/del", data)
}

export function StatefulsetDetailApi(data){
    return axios.get("/api/k8s/deployment/detail",data)
}

export function scaleStatefulsetApi(data){
    return axios.put("/api/k8s/deployment/scale",data)
}

export function restartStatefulsetApi(data){
    return axios.put("/api/k8s/deployment/restart",data)
}